#coding=utf-8
import re, requests
def parse_content(url, account):
    response = requests.get(url)
    html = response.text
    html = str(html)
    findDiv = re.compile('''<div class="rich_media_content                                                                     "(.*?)id="js_content" style="visibility: hidden;">(.*?)</div>''',re.S)
    div = re.findall(findDiv, html)
    div = ''.join(div[0][1])
    div = div.replace(r'\n', '')
    # download_media(div, account)
#     div = replace_img(div, account)
    print(div)
#     return div

if __name__ == '__main__':
    url = 'https://mp.weixin.qq.com/s/JTjk-qEMp17sFl-MvUpEAw'
    parse_content(url, '')
